home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 4 / The Arsenal Files 4 (Arsenal Computer).ISO / casm / au116-as.exe / IBMDOS / FTIME.CPP < prev    next >
C/C++ Source or Header  |  1994-06-05  |  642b  |  28 lines

  1. #include "..\au.hpp"
  2.  
  3. /**********************************************************************/
  4. void get_file_time(AU *au, char *file_name, struct ftime *ftime_hold)
  5. {
  6.     HANDLE handle(0);
  7.  
  8.     if (handle.open(au, file_name, O_RDONLY | O_BINARY) == SUCCESS)
  9.     {
  10.         handle.get_time(ftime_hold);
  11.         handle.close();
  12.     }
  13.     return;
  14. }
  15.  
  16. /**********************************************************************/
  17. void set_file_time(AU *au, char *file_name, struct ftime *ftime_hold)
  18. {
  19.     HANDLE handle(0);
  20.  
  21.     if (handle.open(au, file_name, O_RDONLY | O_BINARY) == SUCCESS)
  22.     {
  23.         handle.set_time(ftime_hold);
  24.         handle.close();
  25.     }
  26.     return;
  27. }
  28.